cmath.pi
cmath.pi
import cmath
print(cmath.pi) # 輸出: 3.141592653589793
cmath.e
cmath.e
import cmath
print(cmath.e) # 輸出: 2.718281828459045
cmath.tau
cmath.tau
import cmath
print(cmath.tau) # 輸出: 6.283185307179586
cmath.inf
cmath.inf
import cmath
print(cmath.inf) # 輸出: inf
print(cmath.isinf(cmath.inf)) # 輸出: True
cmath.infj
cmath.infj
import cmath
print(cmath.infj) # 輸出: infj
cmath.nan
cmath.nan
import cmath
print(cmath.nan) # 輸出: nan
print(cmath.isnan(cmath.nan)) # 輸出: True
cmath.nanj
cmath.nanj
import cmath
print(cmath.nanj) # 輸出: nanj